package net.cocotea.sqltoy.lambda.factory.condition.opt;

import net.cocotea.sqltoy.lambda.factory.condition.base.BaseConditionAction;
import net.cocotea.sqltoy.lambda.func.SFunction;
import net.cocotea.sqltoy.lambda.util.SqlFragmentUtils;

public class LeftLike<T> extends BaseConditionAction<T> {
    public LeftLike(SFunction<T, ?> function, Object value) {
        super(function, value);
    }

    @Override
    public String fragment() {
        return SqlFragmentUtils.leftLike(filed, valueName());
    }
}
